import service from '@/utils/request'

const DisinfectApi = {
  addDisinfect: function(data) {
    return service.post('disinfect', data)
  },
  editDisinfect(data) {
    return service.put('disinfect', data)
  },
  updateDisinfectState(data) {
    return service.put('disinfect/updateState', data)
  },
  deleteDisinfect(data) {
    return service.delete('disinfect', {params: data })
  },
  listDisinfect(data) {
    return service.get('disinfects', {params: data })
  },
  getDisinfectInfo(data) {
    return service.get('disinfect', {params: data })
  },
}

export default DisinfectApi
